home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / flashstrike / flashstrike.swf / scripts / DefineButton2_47 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-02-03  |  783 b   |  29 lines

  1. on(press){
  2.    if(_root.hiding == "no")
  3.    {
  4.       if(_root.ammo > -1)
  5.       {
  6.          if(_root.reloading == "no")
  7.          {
  8.             if(_root.zoomed == 1)
  9.             {
  10.                _root.enemydead = "yes";
  11.                _root.sight.gotoAndPlay("headshot");
  12.                headshot = new Sound(this);
  13.                headshot.attachSound("headshot");
  14.                headshot.start(0,1);
  15.                _root.kills += 1;
  16.                this.play();
  17.             }
  18.             _root.sight.gotoAndPlay("headshot");
  19.             _root.enemydead = "yes";
  20.             headshot = new Sound(this);
  21.             headshot.attachSound("headshot");
  22.             headshot.start(0,1);
  23.             _root.kills += 1;
  24.             this.play();
  25.          }
  26.       }
  27.    }
  28. }
  29.